import request from '@/utils/request'

export function getBlogTagList(params) {
  return request({
    url: process.env.ADMIN_API + '/blogTag/getList',
    method: 'post',
    data: params
  })
}

export function addBlogTag(params) {
  return request({
    url: process.env.ADMIN_API + '/blogTag/add',
    method: 'post',
    data: params
  })
}

export function editBlogTag(params) {
  return request({
    url: process.env.ADMIN_API + '/blogTag/edit',
    method: 'post',
    data: params
  })
}

export function deleteBatchBlogTag(params) {
  return request({
    url: process.env.ADMIN_API + '/blogTag/deleteBatch',
    method: 'post',
    data: params
  })
}

export function stickBlogTag(params) {
  return request({
    url: process.env.ADMIN_API + '/blogTag/stick',
    method: 'post',
    data: params
  })
}

export function blogTagSortByClickCount(params) {
  return request({
    url: process.env.ADMIN_API + '/blogTag/tagSortByClickCount',
    method: 'post',
    params
  })
}

export function blogTagSortByCite(params) {
  return request({
    url: process.env.ADMIN_API + '/blogTag/tagSortByCite',
    method: 'post',
    params
  })
}
